package com.foreverwin.mes.meapi.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.foreverwin.mes.meapi.model.Operation;
import com.foreverwin.mes.meapi.model.Resrce;
import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.base.FrontPage;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Syngna
 * @since 2020-01-13
 */
public interface ResrceService extends IService<Resrce> {

    /**
     *  分页查询
     * @param frontPage
     * @return
     */
    Page<Resrce> selectPage(FrontPage<Resrce> frontPage, Resrce resrce);

    List<Resrce> selectList(Resrce resrce);

    Resrce selectByCode(String site, String resrce);

    Operation selectOperation(String site, String resource );

    List<Resrce> selectEnhanceList(Resrce resrce);

    List<Resrce> listByResourceType(String site, String resourceType);
}